package com.gzsxy.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TUser  implements Serializable {


  private static final long serialVersionUID = -6748983082743222682L;
  private String id;
  private String userName;
  private String realName;
  private String password;
//  private boolean enable;
//  private boolean accountNonExpired;
//  private boolean accountNonLocked;
//  private boolean credentialsNonExpired;
  private Date createTime;
  private Date lastLoginTime;


  private Boolean Deleted;

  private List<GrantedAuthority> authorities = new ArrayList<>();




//  public TUser(String username, String password, Collection<? extends GrantedAuthority> authorities) {
//    super(username, password,true,true,true,true, authorities);
//  }
//
//  public TUser(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends GrantedAuthority> authorities) {
//    super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
//  }

}
